package com.boco.modules.fdoc.dao.sign;

import java.util.List;

import com.boco.common.annotation.MyBatisDao;
import com.boco.common.persistence.CrudDao;
import com.boco.modules.fdoc.model.DoctorUserEntity;
import com.boco.modules.fdoc.model.PersonInformationEntity;
import com.boco.modules.fdoc.model.SignAgreementEntity;
import com.boco.modules.fdoc.model.UserDocSignEntity;
import com.boco.modules.fdoc.model.UserEntity;
import com.boco.modules.fdoc.vo.DoctorDetailVo;
import com.boco.modules.fdoc.vo.PersonInformationVo;
import com.boco.modules.fdoc.vo.SignVo;
import com.boco.modules.fdoc.vo.UserVo;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * ClassName: SignDao <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: 签约相关Dao. <br/>
 * date: 2017年2月8日 上午10:47:00 <br/>
 *
 * @author q
 * @version 
 * @since JDK 1.7+
 */
@MyBatisDao
public interface SignDao extends CrudDao<UserDocSignEntity>{

	/**
	 * 根据personId 删除t_user_doc_sign里的签约信息
	 * Title SignDao.java
	 * Description: 
	 * @param personId
	 * @author lzz
	 * @return 
	 */
	public int deleteSignByPersonId(String personId);
	/**
	 * 根据居民Id获取签约Id
	 * Title SignDao.java
	 * Description: 
	 * @param personId
	 * @return
	 * @author lzz
	 */
	public Integer getSignIdByPersonId(String personId);
	/**
	 * 根据签约Id获取签约协议
	 * Title SignDao.java
	 * Description: 
	 * @param signId
	 * @return
	 * @author lzz
	 */
	public SignAgreementEntity getAgreementBySignId(Integer signId);
	/**
	 * 解约时删除协议
	 * Title SignDao.java
	 * Description: 
	 * @param signId
	 * @return
	 * @author lzz
	 */
	public int deleteAgreement(Integer signId);
	
}
